package com.wg.dome.repository;

import com.wg.dome.entity.user.NameEntity;
import com.wg.db.cache.AbstractUniqueCacheRepository;

public class NameRepository extends AbstractUniqueCacheRepository<NameEntity> {
    public NameRepository() {
        super(NameEntity.class);
    }

    public void add(String name){
        NameEntity nameEntity = new NameEntity();
        nameEntity.setName(name);
        this.add(nameEntity);
    }
}
